package coap.messages;

public class MessageType {
	public static final int Confirmable = 0;
	public static final int NonConfirmable = 1;
	public static final int Acknowledgement = 2;
	public static final int Reset = 3;
	
	public static String getString(int value){
		switch(value){
		case Confirmable:
			return "Confirmable";
		case NonConfirmable:
			return "Non-Confirmable";
		case Acknowledgement:
			return "Acknowledgement";
		case Reset:
			return "Reset";
		default:
			return "Unknown";
		}
	}
}
